package task18;

public class Computer2 {
    Keyboard keyboard=new Keyboard();
    Mouse mouse=new Mouse();
    Mic mic=new Mic();

    public void on() {
        keyboard.open();
        mouse.open();
        mic.open();
        System.out.println("计算机开机成功");
    }

    public void off() {
    }
}
